Remove unused var from acpi_idle_do_entry().
authorKeir Fraser <keir@xen.org>
Fri, 20 May 2011 08:44:41 +0000 (09:44 +0100)
committerKeir Fraser <keir@xen.org>
Fri, 20 May 2011 08:44:41 +0000 (09:44 +0100)
Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/acpi/cpu_idle.c

index 15e1c00cd7aad747ece4570f5f7002bf3b865d4c..064d235e9582d3f5840346a40e98d1922e5ab494 100644 (file)
@@ -273,8 +273,6 @@ static void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cx)
 
 static void acpi_idle_do_entry(struct acpi_processor_cx *cx)
 {
-    int unused;
-
     switch ( cx->entry_method )
     {
     case ACPI_CSTATE_EM_FFH:
@@ -287,7 +285,7 @@ static void acpi_idle_do_entry(struct acpi_processor_cx *cx)
         /* Dummy wait op - must do something useless after P_LVL2 read
            because chipsets cannot guarantee that STPCLK# signal
            gets asserted in time to freeze execution properly. */
-        unused = inl(pmtmr_ioport);
+        inl(pmtmr_ioport);
         return;
     case ACPI_CSTATE_EM_HALT:
         safe_halt();